package com.tao.ifdemo2;

import java.util.Scanner;

public class IfDemo10 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int grade = input.nextInt();
        // 判断是否合法
        if (grade > 100 || grade < 0) {
            System.err.println("输入成绩不合法");
            return;
        }
        if (grade >= 90 && grade <= 100) {
            System.out.println("A级");
        } else if (grade >= 80 && grade < 90) {
            System.out.println("B级");
        } else if (grade >= 70 && grade < 80) {
            System.out.println("C级");
        } else if (grade >= 60 && grade < 70) {
            System.out.println("D级");
        } else {
            System.out.println("E级");
        }


       /* // switch 分支分类
        switch (grade / 10){
            case 10:
            case 9:
                System.out.println("A级");
                break;
            case 8:
                System.out.println("B级");
                break;
            case 7:
                System.out.println("C级");
                break;
            case 6:
                System.out.println("D级");
            default:
                System.err.println("E级");

        }*/
    }
}
